<?php get_header(); ?>

<?php if( simpax_sidebar() == "right_connected" ) : ?>
<div id="uber_page">
<?php endif; ?>
<div id="page">

<?php if (have_posts()) :
 while (have_posts()) : the_post(); ?>
 
<h1 class="title-post">
	<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h1>
<br style="clear: both;" />

<div class="post">
<?php the_content(); ?>
</div>

<?php if(! simpax_sidebar() ) : ?>
</div><?php // #page ?>

<div class="bg-singleinfo">
<?php endif; ?>

<div class="single-info">

<div class="single-nextpost">
<?php if (!function_exists('dynamic_sidebar')
	|| !dynamic_sidebar('Single Right') ) : ?>
	
<p><?php next_post_link('%link &raquo;') ?></p>
<p><?php previous_post_link('&laquo; %link') ?></p>

<?php endif; ?>
</div>

<h3><?php _e('Information','simpax');?></h3>
<strong><?php _e('Autor','simpax');?>:</strong> <?php the_author_posts_link('namefl'); ?><br />
<strong><?php _e('Geschrieben am','simpax');?></strong>
<?php
// link every part of the date to the archive!
$post_year = get_the_time('Y');
$post_month = get_the_time('m');
$post_day = get_the_time('d');
?>
<a href="<?php echo get_day_link("$post_year", "$post_month", "$post_day"); ?>"><?php the_time("j."); ?></a> <a href="<?php echo get_month_link("$post_year", "$post_month"); ?>"><?php the_time("F"); ?></a> <a href="<?php echo get_year_link($post_year); ?>"><?php the_time('Y') ?></a>
<?php _e('um','simpax');?> <?php the_time(); ?> <?php _e('Uhr','simpax');?><br />

<strong><?php _e('Abgelegt unter','simpax');?>:</strong> <span class="list-cats"><?php the_category(', ') ?></span><br />

<?php if(function_exists(UTW_ShowTagsForCurrentPost)) { //UTW-Tags ?>
<strong><?php _e('Tags','simpax');?>:</strong> <?php UTW_ShowTagsForCurrentPost("commalist"); ?><br />
<?php } ?>

<strong><a href="javascript:window.print()">Diese Seite drucken</a></strong><br />

<a href="<?php trackback_url() ?>"><?php _e('Trackback URL','simpax');?></a><br />
<?php comments_rss_link(__('Kommentare als RSS-Feed','simpax')); ?><br />
<?php edit_post_link(__('Artikel bearbeiten','simpax'), '', ''); ?><br />

<br />


<?php if(! simpax_sidebar() ) : ?>
</div>
<?php endif; ?>
</div>

<?php comments_template(); ?>

<?php endwhile;
	else : ?>
<h2 class="title-post"><?php _e('Leide kein Artikel vorhanden...','simpax');?></h2>
</div>
<?php endif; ?>

<?php if( simpax_sidebar() == "right_connected" ) : ?>
</div>
<?php endif; ?>

<?php get_footer(); ?>